package com.pswv2.util;

public enum BackendErrorCode implements ErrorCode {
	duplicate_login(35,"已在另外一台手机登录过，请退出后才能登录"),
	confirm_password_error(34,"两次密码输入不同"),
	old_password_error(33,"原密码错误"),
	alipay_fail(32,"提现失败"),
	score_pid(31,"已打分支付过"),
	not_query(30,"没有查询到"),
	not_data(29,"还没完善资料"),
	not_authentication(28,"还没认证"),
	not_sufficient_funds(27,"余额不足"),
	i_ve_answered(26,"已回答过"),
	overstep_see(25,"查出查看数"),
	not_new_web_socket(24,"没有新建webSocket"),
	already_auditing(23,"你选中的已有已审核过的"),
	Incomplete_data(22,"资料不完善"),
	not_password_question_key(21,"没设置安全保护"),
	password_key_error(20,"答案错误"),
	add_error(19,"关键字重估或者内容重复"),
	not_upload_error(18,"上传错误"),
	not_txt_error(17,"不是txt格式"),
	station_nofree(16,"工位不是空闲的"),
	phone_verify_erroe(15,"验证码错误"),
	phone_not_exist(14,"没有该手机号码"),
	entrepreneurName_repetition(13,"公司名重复"),
	status_error(12, "状态异常"), //
	date_format_error(11, "时间格式错误"), //
	already_exist(10, "已存在/不可重复"), //
	not_exist(9, "不存在/或已删除"), //
	missing_parameter(8, "缺少参数/或为空"), //
	exception(7, null), //
	unknown_error(6, "未知错误"), //
	database_error(5, "数据库错误"), //
	account_exist(4, "帐号已存在"), //
	account_not_exist(3, "帐号不存在"), //
	account_disable(2, "帐号被禁用"), //
	account_password_not_match(1, "密码错误"); //

	private int code = 0;
	private String errorMessage = null;

	private BackendErrorCode(int code, String errorMessage) {
		this.code = code;
		this.errorMessage = errorMessage;
	}

	@Override
	public int getCode() {
		return code;
	}

	@Override
	public String getErrorMessage() {
		return errorMessage;
	}
}
